﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OgilvyOne.UKNow.BLL;
public partial class ImageXml : System.Web.UI.Page
{
    EventsVideoBLL etb ;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            Response.ContentType = "text/xml";
           
            Response.Clear();
            try
            {
                int langid = int.Parse(Request.Form["langId"]);
                etb = new EventsVideoBLL(langid);

                Response.Write("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n " + etb.ReXml(langid));
            }
            catch (Exception)
            {
                Response.Write("NoSum");
            }
        }
    }
}